package com.geostar.zrzy.gtxcsjpgxt.controller;


import com.geostar.zrzy.gtxcsjpgxt.service.IConfUserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author fuyu
 * @since 2020-06-24
 */
@Slf4j
@RestController
@RequestMapping("/gtxcsjpgxt/conf-user")
public class ConfUserController {
    @Autowired
    IConfUserService iConfUserService;

    /**
     * 获取用户详情信息
     * @param userId
     * @return
     */
    @GetMapping("/{userId}")
    public int getUser(@PathVariable("userId") String userId) {
        log.info("info 级别的日志。。。。。。");
        return iConfUserService.count();
    }
}
